package com.ems.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ExamAnalyze {

    private examinfo examinfo;
    private question question;
    private ArrayList<studentScore> studentScores;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class examinfo{
        private String title;
        private Date beginTime;
        private Integer aveTime;
        private Double finishProgressRate;
        private Integer pass;
        private Integer nopass;
        private Integer stuNumber;
        private Integer finished;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class question{

        private ArrayList<choice> single;
        private ArrayList<choice> multiple;

        @Data
        @AllArgsConstructor
        @NoArgsConstructor
        public static class choice{
            private Integer sort;
            private Integer right;
        }
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class studentScore{
        private String name;
        private Integer score;
        private String status;
    }
}
